/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package OtherPubs;

import Rout.GoBefore;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.*;

public class MirrorCreator {

    private GoBefore browser = new GoBefore();

    @BeforeMethod
    public void setUp() throws Exception {
        
        System.out.println("\n Run test: " + getClass().getSimpleName());   
        browser.setDetctButton((Boolean) false);
        browser.setUserAg(1);
        browser.setRepDir(getClass().getSimpleName());
        browser.setXpFilename("//*[@id=\"content\"]/div[2]/div/div[1]/h3");
        browser.setCssFilename("#content > div.page > div > div.file > h3");
        browser.setLpurl("getsecuredfiles");
    }

    @Test
    public void SmalButton() throws Exception {

        browser.setCurURL("http://www.mirrorcreator.com/files/1YCOMLBD/temp._links");

        browser.setClButton("method_title");
        browser.setCssButton("#content > div.page > div > center > a > img");
        browser.setXpButton("//*[@id=\"content\"]/div[2]/div/center/a/img");

        browser.setUp();

        browser.testRun();                        
        
        browser.lpDetect();
        browser.verFilePresent();
        browser.verFilename();


    }
//    
    @AfterMethod
    public void ThearsDown() {
        browser.getDriver().quit();

    }

}
